﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace PumeCentralService
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract(CallbackContract = typeof(IPumpCentralCallback))]
    public interface IPumpCentalService
    {
        [OperationContract]
        void RaiseAlarm();
        [OperationContract]
        bool Subscribe();
        [OperationContract]
        bool SubscribeFromPump(PumpStatusDTO pumpdata);
        [OperationContract]
        bool UnSubscribePump(PumpStatusDTO dto);
        [OperationContract]
        bool UnSubscribeCentral();
        [OperationContract]
        List<PumpStatusDTO> GetDataFromAllPumps();
        [OperationContract]
        PumpStatusDTO GetDataFromSinglePump(string ID);


    }

    
}
